package bliffoscope.engine;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author ddatta
 */
public class Target {
    private String type;                            //enumeration
    
    private int left = -1;
    private int right = -1;
    
    private int top =-1;
    private int bottom = -1;
    
    private float confidence = -1;                        // could be 0 to 100
    
    Target(String type, int left, int top, int right, int bottom, float confidence){
        this.type   = type;
        this.left   = left;
        this.top    = top;
        this.bottom = bottom;
        this.right  = right;
        this.confidence = confidence;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getLeft() {
        return left;
    }

    public void setLeft(int left) {
        this.left = left;
    }

    public int getTop() {
        return top;
    }

    public void setTop(int top) {
        this.top = top;
    }

    public int getRight() {
        return right;
    }

    public void setRight(int right) {
        this.right = right;
    }

    public int getBottom() {
        return bottom;
    }

    public void setBottom(int bottom) {
        this.bottom = bottom;
    }

    public float getConfidence() {
        return confidence;
    }

    public void setConfidence(float confidence) {
        this.confidence = confidence;
    }
    
    @Override
    public String toString(){
        return this.getType() + "| (" + this.getTop() + "," + this.getLeft() +") : ("+this.getBottom()+","+this.getRight()+") | "+this.getConfidence();
    }
}
